package cn.itsource.ymcc.feign.client;

import cn.itsource.ymcc.doc.CourseDoc;
import cn.itsource.ymcc.feign.fallback.CourseDocFeignClientFallbackFactory;
import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-search",fallbackFactory =  CourseDocFeignClientFallbackFactory.class)
public interface CourseDocFeignClient {

    // 定义远程服务接口
    @RequestMapping(value = "/course/online",method = RequestMethod.POST)
    public JSONResult online(@RequestBody CourseDoc courseDoc);
}
